<!DOCTYPE html>
<html>

<head>
    <meta charset="utf8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>详情</title>
    <?php include(APPLICATION_BASE_TPL_PATH . "/inc/include.phtml"); ?>
</head>

<body>

<div id="wrapper">
    <?php echo $menuview; ?>
    <div id="page-wrapper">
        <div class="row" id="waring">
            <div class="col-lg-12">
                <h1 class="page-header">

                </h1>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
        <!--<div class="alert alert-success" role="alert">...</div>-->
        <div class="row">
            <div class="col-lg-12">
                <table class="table table-bordered">
                    <tr class="active">
                        <td colspan="6" class="bold">发送全员系统通知</td>
                    </tr>
                    <tr>
                        <td style="width:15%">内容（格式为json）</td>
                        <td colspan="5">
                            <textarea name="content" id="content" class="form-control"
                                      post-name="content"></textarea>
                        </td>
                    </tr>
                 </table>

                <div class="text-center">
                        <button type="button" class="btn btn-primary submit"
                                post="<?= APP_ADMIN_PATH ?>/msg/noticesubmit" success="updateSuccess">&nbsp;&nbsp;发送&nbsp;&nbsp;
                        </button>
                    <button type="button" class="btn btn-primary " onclick="history.go(-1)">&nbsp;&nbsp;取消&nbsp;&nbsp;
                    </button>
                </div>

            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->


<!-- Page-Level Demo Scripts - Tables - Use for reference -->
<script>
    $("body").on("click", ".submit", function () {
        if (!$("#content").val()) {
            alert('请填写内容!!!!');
            return false;
        }
        return true;
    });

    function updateSuccess(data) {
        alert('操作成功');
        jumpUrl("<?=APP_ADMIN_PATH?>/msg/notice");
    }
</script>

</body>

</html>
